package com.sparksql;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Person implements Serializable {
    private long id;
    private long age;
    private String name;
//    private String sex;
    private long count;
    private long salary;

    public Person(long id, long age, String name) {
        this.id = id;
        this.age = age;
        this.name = name;
    }

    public Person(long id, long age, String name, long count) {
        this.id = id;
        this.age = age;
        this.name = name;
        this.count = count;
    }

    public Person(String name, long salary) {
        this.name = name;
        this.salary = salary;
    }
}
